
//
//  ResultController.m
//  WuJieLive
//
//  Created by 张瀚坤 on 2017/11/6.
//  Copyright © 2017年 zhk. All rights reserved.
//

#import "ResultController.h"

@interface ResultController ()
@property (weak, nonatomic) IBOutlet UIButton *backBtn;
@property (weak, nonatomic) IBOutlet UIImageView *resultImage;
@property (weak, nonatomic) IBOutlet UILabel *resultLabel;

@end

@implementation ResultController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

-(void)setNavi
{
    self.title = @"完成";
    [self.leftBtn setImage:Image(@"icon_nav_关闭") forState:(UIControlStateNormal)];
}

-(void)setUI
{
    [self.backBtn.layer setMasksToBounds:YES];
    [self.backBtn.layer setCornerRadius:10];
    self.backBtn.layer.borderWidth = 0.5;
    self.backBtn.layer.borderColor = Color(102, 102, 102).CGColor;
    self.resultImage.image = Image(self.imageName);
    self.resultLabel.text = self.labelText;
    self.backBtn.hidden = self.isHiddenBtn;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)leftBtnAction:(UIButton *)sender
{
    [self.navigationController popToRootViewControllerAnimated:YES];
}

- (IBAction)backAction:(id)sender {
    
    [self.navigationController popToRootViewControllerAnimated:YES];
}


@end
